/**
 * 
 */
package com.haisen.lee.domain;

import java.net.URL;

import com.haisen.lee.util.HtmlStructureType;

/**
 * @author Haisen Lee
 * 
 */
public class SearchPage {

	private URL selfURL;
	private String strSelfURL;
	private WebSite selfWebSite;
	private HtmlStructureType htmlStructureType;
	private HtmlPage htmlPage;

	public HtmlPage getHtmlPage() {
		return htmlPage;
	}

	public void setHtmlPage(HtmlPage htmlPage) {
		this.htmlPage = htmlPage;
	}

	/**
	 * default constructor
	 */
	public SearchPage() {
		super();
	}

	@Override
	public int hashCode() {
		return this.strSelfURL.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof SearchPage)) {
			return false;
		}
		SearchPage other = (SearchPage) obj;
		return this.strSelfURL.equals(other.getStrSelfURL());
	}

	public HtmlStructureType getHtmlStructureType() {
		return htmlStructureType;
	}

	public void setHtmlStructureType(HtmlStructureType htmlStructureType) {
		this.htmlStructureType = htmlStructureType;
	}

	/**
	 * @return the selfURL
	 */
	public URL getSelfURL() {
		return selfURL;
	}

	/**
	 * @param selfURL
	 *            the selfURL to set
	 */
	public void setSelfURL(URL selfURL) {
		this.selfURL = selfURL;
	}

	/**
	 * @return the strSelfURL
	 */
	public String getStrSelfURL() {
		return strSelfURL;
	}

	/**
	 * @param strSelfURL
	 *            the strSelfURL to set
	 */
	public void setStrSelfURL(String strSelfURL) {
		this.strSelfURL = strSelfURL;
	}

	/**
	 * @return the selfWebSite
	 */
	public WebSite getSelfWebSite() {
		return selfWebSite;
	}

	/**
	 * @param selfWebSite
	 *            the selfWebSite to set
	 */
	public void setSelfWebSite(WebSite selfWebSite) {
		this.selfWebSite = selfWebSite;
	}

}
